Crate cached_proc_macro
source ·Attribute Macros§
- Define a memoized function using a cache store that implements
cached::Cached
(andcached::CachedAsync
for async functions) - Define a memoized function using a cache store that implements
cached::IOCached
(andcached::IOCachedAsync
for async functions) - Define a memoized function using a cache store that implements
cached::Cached
(andcached::CachedAsync
for async functions). Function arguments are not used to identify a cached value, only one value is cached unless atime
expiry is specified.